package yl.hs.bmipfull.service.material;

import com.fasterxml.jackson.core.JsonProcessingException;
import yl.hs.bmipfull.pojo.material.RawMaterialTransferOrderEntity;
import yl.hs.bmipfull.service.IBaseService;
import yl.hs.bmipfull.viewmodels.PageQuery;
import yl.hs.bmipfull.viewmodels.PageResult;
import yl.hs.bmipfull.viewmodels.SubmitModel;

import java.math.BigDecimal;
import java.util.List;

/*
 * IRMTransferService
 * @category
 * @author 谢景广
 * @date 2022-12-23
 */
public interface IRMTransferService extends IBaseService {
    List<RawMaterialTransferOrderEntity> queryPlan();

    Integer savePlan(SubmitModel model) throws Exception;

    PageResult<RawMaterialTransferOrderEntity> queryPage(PageQuery query, int rowNum, int page);

    Integer saveTareWeight(String sn, BigDecimal weight);

    Integer saveGrossWeight(String sn, BigDecimal weight);

    Integer saveSign(SubmitModel model);


    RawMaterialTransferOrderEntity findByTruck(String truckPlate);

    RawMaterialTransferOrderEntity findBySn(String sn);

    Integer backAndReturn(String sn);

    Integer deleteBySN(String sn) throws JsonProcessingException;
    List<RawMaterialTransferOrderEntity> queryAll(String key);
}
